Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Billing Contact UI Regression from by MUI Update #9667

Merged

Conversation

bnussman-akamai
Copy link
Member

Description 📝

The Fix 🔨

  • It seems that MUI need <Grid> to be a child of <Grid container> rather than a <Box> so it can correctly apply Grid styles

Preview 📷

Before After
Screenshot 2023-09-12 at 11 27 35 PM Screenshot 2023-09-12 at 11 27 49 PM

How to test 🧪

  • Go to http://localhost:3000/account/billing and check the alignment and responsiveness of the Billing Contact section

@bnussman-akamai bnussman-akamai added the UX/UI Changes for UI/UX to review label Sep 13, 2023
@bnussman-akamai bnussman-akamai self-assigned this Sep 13, 2023
Copy link
Contributor

@abailly-akamai abailly-akamai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx!

@@ -140,7 +139,7 @@ const ContactInformation = (props: Props) => {
state ||
zip ||
country) && (
<Box sx={sxBox}>
<Grid sx={sxGrid}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that's it's a Grid I don't think you need the extra CSS here. You can most likely remove sxGrid sx all together

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sadly, that did not work 😖

Copy link
Contributor

@cpathipa cpathipa Sep 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding m={0} at line 133 would also solves the issue and consistent with other boxes without having additional padding to subelements.
Also, you can completely lift sxGrid styles.

image

image

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could do that, but do we really want to override MUI's Grid rules? Also, lifting lift sxGrid/sxBox styles still breaks some UI

@bnussman-akamai bnussman-akamai merged commit f1692a2 into linode:develop Sep 13, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
UX/UI Changes for UI/UX to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants